<<<<<<< HEAD
import { observable, action, computed, runInAction, autorun, when, reaction } from "mobx"
// import { getMaxListeners } from "cluster";
import { list } from "_postcss@7.0.17@postcss";
class MvStore{
    @observable mv=['mv']
    @observable mv2=['mv2']
    @observable playmv1=['playmv1']
  constructor(store){
      this.store=store
  }
  @action.bound getmvList(value){
    fetch("https://v1.itooi.cn/netease/mv/top?pageSize=10&page=0")
    .then(body=>body.json())
    .then(data=>{
        this.setmvList(data.data)
        // console.log(data.data)
    })


}
@action.bound setmvList(list){
    this.mv=list
    // console.log(this.mv)
}
@action.bound getmv(id){
    fetch("https://v1.itooi.cn/netease/mv?id="+id)
    .then(body=>body.json())
    .then(data=>{
        this.setmv(data.data)
        // console.log(data.data)
    })


}
@action.bound setmv(list){
    this.mv2={...list}
    // console.log(this.mv2)
}
// @action.bound playmv(id){
//     fetch("https://v1.itooi.cn/netease/mvUrl?id="+id+"&quality=1080")
//     .then(body=>body.json())
//     .then(data=>{
//         this.setplaymv(data.data)
//         console.log(data.data)
//     })


// }
// @action.bound setplaymv(list){
//     this.playmv1={...list}
//     console.log(this.playmv1)
// }
}
=======
import { observable, action, computed, runInAction, autorun, when, reaction } from "mobx"
// import { getMaxListeners } from "cluster";
import { list } from "_postcss@7.0.17@postcss";
class MvStore{
    @observable mv=['mv']
    @observable mv2=['mv2']
    @observable playmv1=['playmv1']
  constructor(store){
      this.store=store
  }
  @action.bound getmvList(value){
    fetch("https://v1.itooi.cn/netease/mv/top?pageSize=10&page=0")
    .then(body=>body.json())
    .then(data=>{
        this.setmvList(data.data)
        // console.log(data.data)
    })


}
@action.bound setmvList(list){
    this.mv=list
    // console.log(this.mv)
}
@action.bound getmv(id){
    fetch("https://v1.itooi.cn/netease/mv?id="+id)
    .then(body=>body.json())
    .then(data=>{
        this.setmv(data.data)
        // console.log(data.data)
    })


}
@action.bound setmv(list){
    this.mv2={...list}
    // console.log(this.mv2)
}
// @action.bound playmv(id){
//     fetch("https://v1.itooi.cn/netease/mvUrl?id="+id+"&quality=1080")
//     .then(body=>body.json())
//     .then(data=>{
//         this.setplaymv(data.data)
//         console.log(data.data)
//     })


// }
// @action.bound setplaymv(list){
//     this.playmv1={...list}
//     console.log(this.playmv1)
// }
}
>>>>>>> 3ef2a7301991405f246e5687924fdd0e40607de4
  export default MvStore